//
// Created by zxm on 18-5-9.
//

#ifndef TIC_TOC_H
#define TIC_TOC_H

#include <iostream>
#include <chrono>


long tictoc_ms();

long tictoc_us();

// get time from system boot (ms)
long get_steady_clock();

// get time from 1970-01-01T00:00:00 (ms)
long get_system_clock();

// convert steady clock to system clock
// steady clock : time duration from system boot
// system clock : time duration form 1970-01-01T00:00:00
long steady_ns_2_system_ns(unsigned long long steady_time_ns);

#endif //TIC_TOC_H
